#ifndef __LOGIN_H__
#define __LOGIN_H__

#include <QWidget>

class QPushButton;
class QLineEdit;
class QLabel;
class QHBoxLayout;
class QVBoxLayout;
class QFormLayout;
class QMovie;

namespace Ui {

class Login : public QWidget {
Q_OBJECT
public:
	Login(QWidget* parent);
	~Login();
signals:
	void tryToConnect(const QString& login,const QString& password);
	void cancelConnection();
private slots:
	void login();
	void refused();
	void cancelled();
private:
	QLineEdit* userText;
	QLineEdit* passwordText;
	QFormLayout* userPassLayout;
	
	QHBoxLayout* loginLayout;
	QPushButton* loginButton;
	QPushButton* cancelButton;
	QLabel* loginLabel;
	QMovie* loginMovie;

	QVBoxLayout* mainLayout;
};

}

#endif // __LOGIN_H__

